@charset "UTF-8";
html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  font-family: "myFirstFont"; }

/*字体的设置*/
@font-face {
  font-family: myFirstFont;
  src: url(方正兰亭纤黑_GBK.TTF); }
.content {
  width: 100%;
  height: 100%;
  overflow: hidden; }

.list {
  position: relative;
  width: 600%;
  height: 100%; }

.home,
.product,
.blog,
.partner,
.questions,
.follow {
  float: left;
  margin: 0;
  padding: 0;
  width: 16.66667%;
  height: 100%; }

.home {
  background: url(../img/home.png); }
  .home,
  .home .product {
    background-size: 100% 100%; }

.product {
  position: relative;
  background-image: url(../img/product.png); }

/*把icon居中显示在页面中央*/
.icon {
  position: relative;
  top: 50%;
  width: 65%;
/*  height: 150px;*/
  margin: 0 auto; }

.icon figure {
  float: left;
  color: #fff;
  width: 20%;
  margin: 0;
  text-align: center; }

.icon a {
  /*width: 50px;
  height: 50px;*/ }

.icon img {
  width: 40%;
  height: 40%; }

/*鼠标移动到小图标上面发生的动画*/
@-webkit-keyframes changePos {
  0% {
    -webkit-transform: translate(0, -10px);
    transform: translate(0, -10px); }
  20% {
    -webkit-transform: translate(0, 10px);
    transform: translate(0, 10px); }
  40% {
    -webkit-transform: translate(0, -5px);
    transform: translate(0, -5px); }
  50% {
    -webkit-transform: translate(0, 5px);
    transform: translate(0, 5px); }
  100% {
    -webkit-transform: translate(0, 0);
            transform: translate(0, 0); } }
@keyframes changePos {
  0% {
    -webkit-transform: translate(0, -10px);
    transform: translate(0, -10px); }
  20% {
    -webkit-transform: translate(0, 10px);
    transform: translate(0, 10px); }
  40% {
    -webkit-transform: translate(0, -5px);
    transform: translate(0, -5px); }
  50% {
    -webkit-transform: translate(0, 5px);
    transform: translate(0, 5px); }
  100% {
    -webkit-transform: translate(0, 0);
            transform: translate(0, 0); } }
.icon img:hover {
  -webkit-animation: changePos 0.5s ease;
          animation: changePos 0.5s ease; }

.nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  height: 60px;
  margin-top: 10px;
  margin-left: 150px; }
  .nav p {
    width: 48px;
    margin: 3px 0;
    font-size: 12px;
    color: #d3d3d3;
    text-align: center; }
  .nav a {
    text-decoration: none; }

.png0 {
  height: 48px;
  margin-right: 100px;
  cursor: pointer; }

.png1,
.png2,
.png3,
.png4,
.png5 {
  margin-right: 40px;
  height: 48px;
  cursor: pointer; }

.line1,
.line2 {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 80%;
  margin: 0 auto;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  margin-top: 30px; }

.library,
.xiyouNav,
.platform,
.bP,
.hatch,
.hack {
  width: 25%;
  height: 30%; }

.show {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%); }

.show a {
  text-decoration: none;
  color: #000; }
  .show a:hover {
    color: #7efefc; }

.box1 {
  width: 100%;
  height: 120px; }

.box1 img {
  width: 100%;
  height: 100%; }

.box2 {
  /*height: 90px;*/
  margin-top: -2px;
  height: 80px;
  padding-bottom: 20px;
  text-align: center;
  background: #fff; }

.box2 h3 {
  margin: 0;
  font-size: 18px;
  line-height: 50px; }

.box2 p {
  margin: 0;
  font-size: 14px; }

.partner {
  background-image: url(../img/parenter.png);
  background-size: 100% 80%; }

/*弹幕的盒子添加样式*/
.barrage {
  position: relative;
  width: 100%;
  height: 85%;
  margin-top: 10px;
  overflow: hidden; }

.man-box {
  position: absolute;
  width: 350px;
  height: 70px; }
  .man-box img {
    width: 100%;
    height: 100%; }

.questions {
  background-image: url(../img/fqbg.png); }

.explain {
  padding-top: 10px; }

.sub-explain {
  padding: 20px;
  margin: 0 auto;
  margin-top: 20px;
  width: 700px;
  -webkit-transition-duration: 0.3s;
  transition-duration: 0.3s; }
  .sub-explain:hover {
    -webkit-transform: scale(1.1, 1.1);
    transform: scale(1.1, 1.1);
    -webkit-transition-duration: 0.5s;
    transition-duration: 0.5s;
    box-shadow: 0 0 2px 2px #ccc; }

.explain h3 {
  margin: 0;
  font-size: 20px;
  margin-bottom: 10px; }

.explain span {
  font-size: 16px; }

.follow {
  position: relative;
  background-image: url(../img/fqbg.png); }

/*定义文字的宽度*/
.link {
  position: absolute;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  left: 50%;
  margin-left: -405px;
  top: 30%;
  width: 810px;
  text-align: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between; }
  .link p {
    width: 135px; }

.link figure div {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  border-radius: 40px; }
.link figure img {
  margin-top: 24px;
  width: 30px;
  height: 30px; }
.link figure img:hover {
  -webkit-transition-duration: .3s;
          transition-duration: .3s;
  -webkit-transform: scale(1.2);
          transform: scale(1.2); }

.weixin div {
  border: 1px solid #88e0da; }

.weibo div {
  border: 1px solid #ecb9bc; }

.github div {
  border: 1px solid #ecb9bc; }

.renren div {
  border: 1px solid #b1dbf0; }

/*后来添加上的样式，就是改变图片变为蓝色的那个*/
.upIcon {
  margin-right: 40px;
  height: 43px; }

/*博客首页展示的内容*/
.blog-content {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1000px;
  height: 480px;
  margin-top: -240px;
  margin-left: -500px;
  background: rgba(255, 255, 255, 0.1); }

.blog-line {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  margin-bottom: 10px; }

.classify {
  overflow: hidden;
  margin-top: 10px; }
  .classify a {
    text-decoration: none;
    color: #000;
    display: inline-block;
    width: 240px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden; }
  .classify a:hover {
    color: #707070; }
  .classify h3 {
    float: left;
    margin: 0; }
  .classify .classify-msg {
    float: right; }
  .classify span {
    display: inline-block;
    padding: 3px 10px;
    margin-right: 15px;
    font-size: 12px;
    color: #9b9b9b;
    border-radius: 12px;
    border: 1px solid #ccc; }

.essay {
  -moz-flex: 1;
  -ms-flex: 1;
  -o-flex: 1;
  -webkit-box-flex: 1;
          flex: 1;
  margin-right: 10px;
  padding: 10px 20px;
  border: 1px solid #eaeceb;
  box-shadow: 0 0  8px #eaeceb;
  background: #fff;
  overflow: hidden; }
  .essay p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-height: 1.8em;
    overflow: hidden; }
  .essay p:hover {
    /*color:;*/
  }

/*blog页面的背景*/
.blog {
  position: relative;
  background-image: url(../img/blogbg.png);
  background-size: 100% 100%; }
  .blog .change {
    text-align: center;
    position: absolute;
    left: 100px;
    bottom: 100px; }
    .blog .change img {
      display: block;
      cursor: pointer; }

/*实验室常见问题*/
.sub-explain {
  background: #fff; }

/*第二页放大图片的类*/
.zoom {
  -webkit-transform: scale(1.1, 1.1);
          transform: scale(1.1, 1.1);
  -webkit-transition: .5s transform;
  transition: .5s transform;
  box-shadow: 0px 5px 10px -5px #333; }

/*第二页还原图片大小*/
.restore {
  -webkit-transform: scale(1, 1);
          transform: scale(1, 1);
  -webkit-transition: .2s transform;
  transition: .2s transform; }

.introduction {
  position: relative;
  width: 100%; }

.intr,
.newIntr {
  width: 100%;
  position: absolute; }

/*第二页文字介绍*/
.introduction:hover .intr {
  opacity: 0;
  -webkit-transition: opacity 1s;
  transition: opacity 1s; }

.newIntr {
  opacity: 0;
  -webkit-transform: translate(30px, 0);
          transform: translate(30px, 0);
  -webkit-transition: opacity 1s, -webkit-transform 1s;
  transition: opacity 1s, -webkit-transform 1s;
  transition: transform 1s, opacity 1s;
  transition: transform 1s, opacity 1s, -webkit-transform 1s; }

.introduction:hover .newIntr {
  opacity: 1;
  -webkit-transform: translate(0, 0);
          transform: translate(0, 0);
  text-align: left;
  width: 80%; }

/*移入二维码*/
#twocode {
  opacity: 0;
  width: 120px;
  height: 120px;
  -webkit-transform: translate(130px, -180px) rotateY(-90deg);
          transform: translate(130px, -180px) rotateY(-90deg); }

.weixin:hover #twocode {
  -webkit-transition: opacity 1s, -webkit-transform 1s;
  transition: opacity 1s, -webkit-transform 1s;
  transition: transform 1s, opacity 1s;
  transition: transform 1s, opacity 1s, -webkit-transform 1s;
  -webkit-transform: translate(0, -180px) rotateY(0);
          transform: translate(0, -180px) rotateY(0);
  opacity: 1; }

/*首页图标的抖动特效*/
.shake {
  width: 50px;
  height: 50px;
  margin: 30px auto;
  background: red;
  border-radius: 25px;
  position: relative; }

@-webkit-keyframes buzz-out {
  0% {
    -webkit-transform: translateY(-4px); }
  20% {
    -webkit-transform: translateY(4px);
            transform: translateY(4px); }
  40% {
    -webkit-transform: translateY(-2px);
            transform: translateY(-2px); }
  60% {
    -webkit-transform: translateY(2px);
            transform: translateY(2px); }
  80% {
    -webkit-transform: translateY(-1px);
            transform: translateY(-1px); }
  100% {
    -webkit-transform: translateY(0); } }
.shake:hover {
  -webkit-animation-name: buzz-out;
  -webkit-animation-duration: 0.8s;
  -webkit-animation-timing-function: linear;
  -webkit-animation-iteration-count: 1; }

@-webkit-keyframes danmu {
  0% {
    -webkit-transform: translateX(1300px);
            transform: translateX(1300px); }
  98% {
    opacity: 1; }
  100% {
    -webkit-transform: translateX(-800px);
            transform: translateX(-800px);
    opacity: 0;
    -webkit-transition: opacity 1s;
    transition: opacity 1s; } }

@keyframes danmu {
  0% {
    -webkit-transform: translateX(1300px);
            transform: translateX(1300px); }
  98% {
    opacity: 1; }
  100% {
    -webkit-transform: translateX(-800px);
            transform: translateX(-800px);
    opacity: 0;
    -webkit-transition: opacity 1s;
    transition: opacity 1s; } }
/*弹幕css3实现*/
.man-box {
  -webkit-animation: danmu 20s linear 0s infinite normal;
          animation: danmu 20s linear 0s infinite normal; }

.man-box:hover {
  -webkit-animation-play-state: paused;
          animation-play-state: paused; }
